
import javax.inject.Inject;
import javax.annotation.PostConstruct;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;

import cn.elwy.osgi.config.util.RcpPathSupport;

public class Demo {
	private Text text;

	@Inject
	public Demo() {

	}

	@PostConstruct
	public void postConstruct(Composite parent) {
		text = new Text(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
		initView();
	}

	private void initView() {
		text.append("\r\nINSTALL_HOME: ");
		text.append(RcpPathSupport.getInstance().getInstallPath());
		text.append("\r\nWORKSPACE_PATH: ");
		text.append(RcpPathSupport.getInstance().getWorkspacePath().getAbsolutePath());
		text.append("\r\ngetAppHomePath: ");
		text.append(RcpPathSupport.getInstance().getAppHomePath());
		text.append("\r\ngetConfigHomePath: ");
		text.append(RcpPathSupport.getInstance().getConfigHomePath());
		text.append("\r\ngetInstallPath: ");
		text.append(RcpPathSupport.getInstance().getInstallPath());
		text.append("\r\nPRODUCT_PATH: ");
		text.append(RcpPathSupport.getInstance().getProductPath().getAbsolutePath());
	}

}